package com.itheima.io.inputstreamreader.demo01;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

public class InputStreamReaderDemo01 {

    public static void main(String[] args) throws IOException {

        InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream("itheima-io-inputstreamreader\\a.txt"));

        int ch = -1;
        while ((ch = inputStreamReader.read()) != -1){
            System.out.print((char)ch);
        }

        inputStreamReader.close();

    }



}
